﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProdList.aspx.cs" Inherits="Customer_Profile.eCard.ProdList" %>

<%@ Register Src="~/mainTop.ascx" TagName="mainTop" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="/css/style.css" type="text/css" rel="stylesheet">
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
    <form id="Form1" method="post" runat="server">
        <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td width="1" background="/images/dot_vline.gif">
                    <img height="1" src="/images/spacer.gif" width="1"></td>
                <td valign="top" width="15">
                    <img height="1" src="/images/spacer.gif" width="15"></td>
                <td id="TD1" valign="top" runat="server">
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td>
                                <img height="5" src="/images/spacer.gif" width="1"></td>
                        </tr>
                        <tr>
                            <td height="23">
                                <span class="navi-blk">
                                    <uc1:mainTop ID="MainTop1" runat="server"></uc1:mainTop>
                                    个人旅行卡管理>基础数据管理>产品列表 </span>
                            </td>
                        </tr>
                        <tr>
                            <td background="/images/dot_hline.gif">
                                <img height="1" src="/images/spacer.gif" width="1"></td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td>
                                <img height="8" src="/images/spacer.gif" width="1"></td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td>
                                    <table bordercolor="#c2d2e2" cellspacing="0" cellpadding="2" width="100%" border="1">
                                        <tr>
                                            <td>
                                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                    <tr>
                                                        <td bgcolor="#1765a7">
                                                            <img height="11" src="/images/pic_results.gif" width="61"></td>
                                                    </tr>
                                                </table>
                                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                    <tr>
                                                        <td class="bglist" width="10%" style="height: 18px">产品编码</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="20%" style="height: 18px">产品名称</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="10%" style="height: 18px">折扣</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>                                                        
                                                        <td class="bglist" width="7%" style="height: 18px">销售返佣</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="8%" style="height: 18px">结算返佣</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="10%" style="height: 18px">年化利息</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="10%" style="height: 18px">销售成本</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="10%" style="height: 18px">起始金额</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="5%" style="height: 18px">期限</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="5%" style="height: 18px">在售</td>
                                                        <td class="bglist" style="height: 18px"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                                        <td class="bglist" width="5%" style="height: 18px">修改</td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="21">
                                                            <font face="宋体">                                                                
                                                                <asp:GridView ID="dtgLogList" runat="server" ShowHeader="false" AutoGenerateColumns="False"
                                                                BorderWidth="0px" Width="100%" HorizontalAlign="Center" 
                                                                Font-Size="Smaller" DataKeyNames="procduct_code"
                                                                AllowPaging="True" PageSize="20" 
                                                                onpageindexchanging="dtgLogList_PageIndexChanging" 
                                                                onrowdatabound="dtgLogList_RowDataBound">
                                                                <HeaderStyle HorizontalAlign="Center" BorderStyle="Groove" BackColor="#C0C0FF" />
                                                                <RowStyle HorizontalAlign="Center" CssClass="bglist-2" />
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="产品编码">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LinkButton1" Text='<%#Eval("procduct_code") %>' runat="server"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>                                                            
                                                                    <asp:BoundField DataField="procduct_name" HeaderText="产品名称">
                                                                        <ItemStyle Width="20%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="sale_discount" HeaderText="折扣">
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="commission_percent" HeaderText="销售返佣">
                                                                        <ItemStyle Width="7%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="settle_percent" HeaderText="结算返佣">
                                                                        <ItemStyle Width="8%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="annual_yeild" HeaderText="年化收益">
                                                                        <ItemStyle Width="10"  />
                                                                    </asp:BoundField>

                                                                    <asp:BoundField DataField="sale_costing" HeaderText="成本折扣">
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:BoundField>                                                            
                                                                    <asp:BoundField DataField="initial_amout" HeaderText="起始金额">
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="period" HeaderText="期限">
                                                                        <ItemStyle Width="5%" />
                                                                    </asp:BoundField>                                  
                                                                    <asp:BoundField DataField="in_use" HeaderText="在售">
                                                                        <ItemStyle Width="5%" />
                                                                    </asp:BoundField>                                                            
                                                                    <asp:TemplateField HeaderText="status" ItemStyle-Width="5%">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lbAction" CommandArgument="status" Text="修改" runat="server"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>      
                                                            </font>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="21" style="text-align:right">
                                                             <asp:Button ID="btnSave" runat="server" class="button" Text="添加产品" onclick="btnSave_Click"/>&nbsp;&nbsp;&nbsp;&nbsp;
                                                        </td>
                                                    </tr>
                                                </table>
                                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                            </td>
                        </tr>
                    </table>
                </td>
   
    
   
    <td valign="top" width="10">
        <img height="1" src="/images/spacer.gif" width="10"></td>
    </tr> </table> </form>
</body>
</html>